import java.util.Scanner;

public class chapter11 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int b = 0;
        System.out.println("请输入一个数：");
        int a = input.nextInt();
        for(int i = 1;i<=a;i++){
            if(a%i==0)
                b=b+1;

        }
        if(b==2) {
            System.out.println("这个数是质数");

        }else{
            System.out.println("这个数不是质数");

        }
    }
}
